/**
 * @author 0283000115
 * @date 2018年3月3日-下午3:06:17
 */
package com.zte.claa.inficombo.csa.app.dao.mysql.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.zte.claa.inficombo.csa.app.model.dev.DevJoinState;
import com.zte.claa.inficombo.csa.app.model.dev.DevRunState;

/**
 * @author 0283000115
 *
 */

@Repository
public interface DevStateMapper {
	
	// devjoin消息持久化.
	public int updateDevJoinState(@Param("devstate") DevJoinState devstate) throws Exception;
	
	// devjoin消息持久化（连带更新GSP关联的传感终端).
	public int updateSensorDevJoinStateByDtu(@Param("dtustate") DevJoinState dtustate) throws Exception;
			
	// devjoin消息持久化.
	public int updateDevRunState(@Param("devstate") DevRunState devstate) throws Exception;
	
	// devjoin消息持久化.
	public int updateSensorDevRunStateByDtu(@Param("dtustate") DevRunState dtustate) throws Exception;
	
}
